package cn.kbblog.activemq;

import javax.annotation.Resource;
import javax.jms.Message;
import javax.jms.MessageListener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import cn.kbblog.biz.MqMessageHandleBiz;
import cn.kbblog.dao.UserinfoDao;

@Component
public class QueueReceiver1 implements MessageListener {

	private static final Logger LOGGER = LoggerFactory.getLogger(QueueReceiver1.class);
	
	@Resource
	private UserinfoDao userDao;
	@Resource
	private MqMessageHandleBiz mqMessageHandleBiz;
	
	
	@Override
	public void onMessage(Message arg0) {
		mqMessageHandleBiz.updateQueueReceiverMessage(arg0);
	}

}
